<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
        <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
        <%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<%
	String ctx = request.getContextPath();
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<base href="<%=basePath%>">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Sports</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="keywords" content="My Play Responsive web template, Bootstrap Web Templates, Flat Web Templates, Andriod Compatible web template, 
Smartphone Compatible web template, free webdesigns for Nokia, Samsung, LG, SonyErricsson, Motorola web design" />
<script type="application/x-javascript"> addEventListener("load", function() { setTimeout(hideURLbar, 0); }, false); function hideURLbar(){ window.scrollTo(0,1); } </script>
<!-- bootstrap -->
<link href="css/bootstrap.min.css" rel='stylesheet' type='text/css' media="all" />
<!-- //bootstrap -->
<link href="css/dashboard.css" rel="stylesheet">
<!-- Custom Theme files -->
<link href="css/style.css" rel='stylesheet' type='text/css' media="all" />
<script src="js/jquery-1.11.1.min.js"></script>
<!--start-smoth-scrolling-->
<!-- fonts -->
<link href='http://fonts.useso.com/css?family=Open+Sans:300italic,400italic,600italic,700italic,800italic,400,300,600,700,800' rel='stylesheet' type='text/css'>
<link href='http://fonts.useso.com/css?family=Poiret+One' rel='stylesheet' type='text/css'>
<!-- //fonts -->
</head>

  <body>

    <nav class="navbar navbar-inverse navbar-fixed-top">
      <div class="container-fluid">
        <div class="navbar-header">
          <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
            <span class="sr-only">Toggle navigation</span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
          </button>
        </div>
        <div id="navbar" class="navbar-collapse collapse">
			<div class="top-search">
				<form class="navbar-form navbar-right" action="<%=ctx%>/song/selectSong">
					<input type="text" class="form-control" placeholder="输入歌曲名">
					<input type="submit" value=" ">
				</form>
			</div>  
			<div class="header-top-right">
				<c:if test="${role==1}">
					<div class="file">
						<a href="upload.jsp">上传</a>
					</div>
				</c:if>
				
				 <c:if test="${sessionScope.loginUser != null }"> 
					&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;
				<div class="side-bottom-icons">
					<ul class="nav2">
						<li style="color: black;">个人设置</li>
						<li><a href="<%=ctx%>/user/toAbout" class="facebook"></a></li>
						<li style="color: black;">退出账户</li>
						<li><a href="<%=ctx%>/user/logout" class="facebook dribbble"> </a></li>
					</ul>
			</div>
				</c:if> 
				
			
		</div>
		<div class="clearfix"></div>
		
	</div>
	</nav>
        <div class="col-sm-3 col-md-2 sidebar">
			<div class="top-navigation">
				<div class="t-menu">MENU</div>
				<div class="t-img">
					<img src="images/lines.png" alt="" />
				</div>
				<div class="clearfix"> </div>
			</div>
				<div class="drop-navigation drop-navigation">
				  <ul class="nav nav-sidebar">
					<li class="active"><a href="<%=ctx%>/user/toIndexView" class="home-icon"><span class="glyphicon glyphicon-home" aria-hidden="true"></span>Home</a></li>
					<li><a href="<%=ctx%>/songList/selectSongListByType" class="user-icon"><span class="glyphicon glyphicon-home glyphicon-blackboard" aria-hidden="true"></span>歌单</a></li>
					<li><a href="history.jsp" class="sub-icon"><span class="glyphicon glyphicon-home glyphicon-hourglass" aria-hidden="true"></span>音乐人</a></li>
					<li><a href="javascript:void(0);" class="menu1"><span class="glyphicon glyphicon-film" aria-hidden="true"></span>排行榜<span class="glyphicon glyphicon-menu-down" aria-hidden="true"></span></a></li>
						<ul class="cl-effect-2">
							<li><a href="<%=ctx%>/song/selectSongByCounts">热歌榜</a></li>                                             
							<li><a href="<%=ctx%>/song/selectSongByComment">热评榜</a></li>
							<li><a href="<%=ctx%>/song/selectSongByCreate">新歌榜</a></li> 
						</ul>
						<!-- script-for-menu -->
						<script>
							$( "li a.menu1" ).click(function() {
							$( "ul.cl-effect-2" ).slideToggle( 300, function() {
							// Animation complete.
							});
							});
						</script>
					<li><a href="javascript:void(0);" class="menu"><span class="glyphicon glyphicon-film glyphicon-king" aria-hidden="true"></span>分类听歌<span class="glyphicon glyphicon-menu-down" aria-hidden="true"></span></a></li>
						<ul class="cl-effect-1">
							<li><a href="<%=ctx%>/song/selectSongByType?type=1">说唱</a></li>                                             
							<li><a href="<%=ctx%>/song/selectSongByType?type=2">摇滚</a></li>
							<li><a href="<%=ctx%>/song/selectSongByType?type=3">流行</a></li> 
							<li><a href="<%=ctx%>/song/selectSongByType?type=4">民谣</a></li>   
						</ul>
						<!-- script-for-menu -->
						<script>
							$( "li a.menu" ).click(function() {
							$( "ul.cl-effect-1" ).slideToggle( 300, function() {
							// Animation complete.
							});
							});
						</script>
				  </ul>
				  <!-- script-for-menu -->
						<script>
							$( ".top-navigation" ).click(function() {
							$( ".drop-navigation" ).slideToggle( 300, function() {
							// Animation complete.
							});
							});
						</script>
				</div>				
        </div>
        
       <div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main">
       
			<div class="main-grids">
				<div class="top-grids">
					<div class="recommended-info">
					<img src="${imgpath}" alt="" height="400" width="400"/>
					<h2 class="f-ff2 f-brk"> ${listName}</h2><h4>共有${songCounts}首歌</h4>
					
					<table id="infoTable" name="infoTable" width="810" height="30"
			border="0" cellpadding="0" cellspacing="0" class="tbBorder">
					<tr><td><font size="4">歌曲名</td><td>&emsp;&emsp;&emsp;<font size="4">歌手</td><td>&emsp;&emsp;&emsp;<font size="4">时长</td></tr>
					<c:forEach items="${songList}" var="list">
					<tr><td><a href="<%=ctx%>/song/selectSongById?songId=${list.songId}"><font size="4">${list.songName}</a></td>
					&emsp;&emsp;<td><font size="4">&emsp;&emsp;${list.singer}</td>
					&emsp;&emsp;<td><font size="4">&emsp;&emsp;${list.time}</td>
					</tr>
					</c:forEach>
					</table>
					</div></div></div></div>
    <!-- Bootstrap core JavaScript
    ================================================== -->
    <!-- Placed at the end of the document so the pages load faster -->
    <script src="js/bootstrap.min.js"></script>
    <!-- Just to make our placeholder images work. Don't actually copy the next line! -->
  </body>
</html>